//
//  StoreDetailsViewController.h
//  iFoundIt
//
//  Created by Navid Shariat on 4/05/10.
//  Copyright 2010 QUT. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>
#import "Store.h"

@interface StoreDetailsViewController : UIViewController <MKMapViewDelegate, MKReverseGeocoderDelegate, CLLocationManagerDelegate> {

	Store * store;
	IBOutlet UILabel * nameLabel;
	IBOutlet UILabel * addLabel;
	IBOutlet UILabel * distLabel;
    IBOutlet MKMapView *mapView;
	CLLocationManager *locationManager;	
}

@property (nonatomic, retain) Store * store;
@property (nonatomic, retain) UILabel * nameLabel;
@property (nonatomic, retain) UILabel * addLabel;
@property (nonatomic, retain) UILabel * distLabel;
@property (nonatomic, retain) MKMapView *mapView;
@property (nonatomic, retain) CLLocationManager *locationManager;	

- (IBAction)reverseGeocodeCurrentLocation;
- (void)dropPinToCurrentLocation: (CLLocationCoordinate2D) coordinate ;
- (MKCoordinateRegion) createRegion;
- (BOOL) areTheSamePlace: (CLLocationCoordinate2D) co1: (CLLocationCoordinate2D) co2;

@end
